import Vue from 'vue'
import App from './App'
import store from './store'

import md5 from '@/utils/md5.js'

// iconfont
import '@/static/iconfont/iconfont.css'

import uView from "uview-ui";
Vue.use(uView);

import {
	toUrl,
	toTimestamp,
	toTime,
	inDevelopment,
	isNull
} from '@/utils/tools.js'

import {
	DOMAIN_NAME
} from '@/utils/config.js';

// 富文本图片处理过滤器
import './filter/myFilter.js'

Vue.prototype.$store = store

// 跳路径
Vue.prototype.toUrl = toUrl

// 开发中提示
Vue.prototype.inDevelopment = inDevelopment

// 判断是否为空
Vue.prototype.isNull = isNull

// md5加密
Vue.prototype.$md5 = md5;

// 图片开头域名
Vue.prototype.$avatar = DOMAIN_NAME;

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
